package com.ningxia.water;

import org.junit.Test;

import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

/**
 * @author huangzhen
 * @create 2021-06-17 10:43
 */
public class New {
    @Test
    public void test(){
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                //xxxx
            }
        });


        List<Integer> list = Arrays.asList(1, 2, 3, 4);
        Iterator<Integer> iterator = list.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
